package com.openjava.example.order.service;

import com.openjava.example.order.domain.ExampleOrder;
import org.ljdp.component.result.ApiResponse;
import org.ljdp.component.result.BasicApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "trading-center")
@RequestMapping(value="/example/order/exampleOrder")
public interface ExampleOrderClient {

    @RequestMapping(value="/{id}",method= RequestMethod.GET)
    public ExampleOrder get(@PathVariable("id")Long id);

    @RequestMapping(value="/hi",method=RequestMethod.GET)
    public BasicApiResponse hi();
}
